package com.company.base;

import java.util.Scanner;

public class demo2 {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入数据");

        if(scanner.hasNextLine()){
            String abc = scanner.nextLine();
            System.out.println("输出："+abc);
        }
        scanner.close();
    }
}
